/**
 * Created by wdcy336 on 2015/7/20.
 */
Ext.define('Monkey.view.authentication.AuthModel', {
    extend: 'Ext.app.ViewModel',

    alias: 'viewmodel.vm-auth',

    data: {
        account: '',
        password: '',
        rememberMe: false,
        code: ''
    },

    //TODO - add data, formulas and/or methods to support your view

    setAccount: function (account) {
        this.data.account = account;
    },

    getCode: function () {
        return this.data.code.trim();
    },

    getAccount: function () {
        return this.data.account.trim();
    },

    getPassword: function () {
        return this.data.password.trim();
    },

    getRememberMe: function () {
        return this.data.rememberMe;
    }

});